package com.alstudio.utils.android.net.upload;

import com.alstudio.utils.android.net.upload.ALHttpUploadTask.ALHttpUploadErrorCode;

public interface ALHttpUploadListener {

	/**
	 * 开始上传
	 * @param task 获取本次上传的任务信息
	 */
	public void onUploadStart(ALHttpUploadTask task);

	/**
	 * 更新上传进度
	 * @param task
	 */
	public void onUpdateProgress(ALHttpUploadTask task);

	/**
	 * 上传完成
	 * @param task
	 */
	public void onUploadFinish(ALHttpUploadTask task);

	/**
	 * 上传失败
	 * @param code
	 */
	public void onUploadFail(ALHttpUploadTask task,ALHttpUploadErrorCode code);

}
